//
//  CustomBtn.m
//  Doctor
//
//  Created by 阳光 on 16/9/27.
//  Copyright © 2016年 阳光. All rights reserved.
//

#import "CustomBtn.h"

@interface CustomBtn ()

@property(nonatomic,assign)CGRect imageRect;

@property(nonatomic,assign)CGRect titleRect;

@end


@implementation CustomBtn

-(void)layoutSubviews
{
    
    [super layoutSubviews];
    self.imageView.frame=_imageRect;
    self.titleLabel.frame=_titleRect;
}

-(void)setImage:(CGRect)imageRect title:(CGRect)titleRect
{
    _imageRect=imageRect;
    _titleRect=titleRect;
    [self setNeedsLayout];
}

@end
